package com.pencilisland.pay.core.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.pencilisland.pay.api.bean.mp.app.WxPayUnifyOrderREQ;
import com.pencilisland.pay.api.bean.mp.app.WxPayUnifyOrderRES;
import com.pencilisland.pay.core.service.CoreAppService;

/**
 * app服务调用处理
 * 
 * @author Breeze
 *
 */
@Controller
@RequestMapping(value = "/core/app")
public class CoreAppController {
	@Autowired
	CoreAppService coreAppService;

	@RequestMapping(value = "wxpay/unifyorder")
	@ResponseBody
	public WxPayUnifyOrderRES wxPayUnifyOrder(@RequestBody WxPayUnifyOrderREQ req) {
		return coreAppService.wxPayUnifyOrder(req);
	}
}
